#ifndef LOGIN_H
#define LOGIN_H

#include "ui_login.h"

#include <QDialog>
#include <QListWidgetItem>
#include "qclickedlabel.h"
#include "db.h"

class Login : public QDialog, public Ui::Login {
    Q_OBJECT
public:
    Login(QWidget *parent = 0);

    void onDisplayVerCode(QString &vFile);
Q_SIGNALS:
     void cancelLogin();
     void LoginSuccess();
public slots:
     void loginClick();
     void SelectAccountClick();
     void cancelClick();
     void exitClick();
     void timerDone();
     void lblNextStatusClicked(QClickedLabel* label);
     void lblNextSettingClicked(QClickedLabel* label);
     void OnSelectAccount(int currentRow);
protected:
    void changeEvent(QEvent *e);
private:
    void showStage(int index);
    void displayVerycode();
    int status;
    int sound;
private:
    QTimer* timer;
    QAction *actHidden;

    AccountList accountList;

};

#endif // LOGIN_H
